<?php

// $Id: ci_normal_ci_form_view.class.php 1570 2009-01-13 12:44:02Z ogrebg $

require_once(TANGRA_MAIN_DIR.'form/fields/textarea/form_field_textarea_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


require_once($WSC->get_site_inc_dir().'modules/form_field_fckeditor/form_field_fckeditor_view.class.php');


class VPage_Normal_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_title = $form->get_field('title');
		$f_title_view = new Form_Field_Textarea_View($form->get_name().'_'.$f_title->get_name(), $f_title);
		$this->add_field_view('title', $f_title_view);

		$f_content = $form->get_field('content');
		$f_content_view = new Form_Field_FCKeditor_View($form->get_name().'_'.$f_content->get_name(), $f_content, 550, 400);
		$this->add_field_view('content', $f_content_view);

		$f_meta_description = $form->get_field('meta_description');
		$f_meta_description_view = new Form_Field_Textarea_View($form->get_name().'_'.$f_meta_description->get_name(), $f_meta_description);
		$this->add_field_view('meta_description', $f_meta_description_view);
	}
}